<%@page language="java" pageEncoding="UTF-8" contentType="text/html; UTF-8" isELIgnored="false" %>
<%@ include file="common.jsp"%>
<html>
<body>
    <a href="user">测试</a>
    <%--ajax  jquery --%>
    <script src="${ctx}/statics/js/jquery.js"></script>
    <script>

        $(document).ready(function() {
            $.ajax({
                url:'user',
                type:'post',
                data:{id:1,name:'admin'},
                success:function (d){
                    console.log(d);
                },
                error:function (){
                }
            })
        });
        <!-- -->
        /*$(function() {
            console.log("2222");
        });*/
    </script>
</body>
</html>
